package com.thread.pool.application.Singleton;

import com.thread.pool.application.scanner.pool.ThreadPoolConfig;

public class Singleton {
    private static ThreadPoolConfig singleton = null;

    private Singleton() {
    }
    //获取对象的时候再进行实例化
    public static ThreadPoolConfig getInstance() {
        synchronized (Singleton.class) {

            if (singleton == null) {
                singleton = new ThreadPoolConfig();
            }

        }
        return singleton;
    }
}